package com.swallow.auth.infrastructure.acl.oauth2.config.authserver;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * @author: yangjie.deng@resico.cn
 * @since: 2024-05-13 14:06:47
 * @version: v1.0.0
 * @describe:
 */
@Data
@Configuration
@ConfigurationProperties(prefix = AuthServerProperties.SWALLOW_OAUTH2_PREFIX)
public class AuthServerProperties {

    public static final String SWALLOW_OAUTH2_PREFIX = "swallow.oauth2";

    private String loginUrl;

    /**
     *  token 签发地址
     */
    private String issueUrl;

    /**
     *  白名单
     */
    private List<String> whitelist;
}
